from  game.main.admin.include.quers import *
from django.contrib.auth.models import User
class profile:
   def __init__(self,id_u,tupe):
        if tupe=="new":
          addProfreg(id_u)
        if tupe=="updata":
           dd=3
           updateRTY(dd)
   def __call__(self,login):
          user3 = User.objects.get(username=login)
          ad=showdate(user3.id)
          self.us_prf={'id':ad[0],'id_user':ad[1],'jabber':ad[2],'icq':ad[3],'Skype':ad[4],\
                   'site':ad[5],'abut_author':ad[6],'show_im':ad[7],'status':ad[8],'name':user3.first_name,'email':user3.email}
          user3.save()
          return self.us_prf
#===============================================================================
#         
#===============================================================================
   def del_data(self):
        return 0
   def get_data(self):
        return 0
   def set_data(self):
        return 0
